// 主应用组件
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import AuthLayout from './layouts/AuthLayout';
import Register from './components/Auth/Register';
import Login from './components/Auth/Login';
import HomePage from './pages/HomePage';

function App() {
  return (
    <Switch>
      <Route exact path="/register">
        <AuthLayout>
          <Register />
        </AuthLayout>
      </Route>
      <Route exact path="/login">
        <AuthLayout>
          <Login />
        </AuthLayout>
      </Route>
      <Route exact path="/home">
        <HomePage />
      </Route>
    </Switch>
  );
}

export default App;